package com.xwamp.sqls;

public class AuthRoleSqls implements ModelSqlInterface {
	public static final AuthRoleSqls me=new AuthRoleSqls();

	private String table="t_auth_group";

	@Override
	public String getTableName() {
		return table;
	}

	@Override
	public String getPagingSelectSql() {
		return "select * ";
	}

	@Override
	public String getPagingExceptSelectSql() {
		return "from t_auth_group ";
	}

	public String getUpdateRulesSql() {
		return "update t_auth_group set rules=? where id=?";
	}

	public String getSelectSql() {
		return "select * from t_auth_group where status=1 order by sort, id";
	}

	public String getUpdateStatusSql() {
		return "update t_auth_group set status=? where id=?";
	}

	public String getUpdateSortSql() {
		return "update t_auth_group set sort=? where id=?";
	}

}
